/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package practikasdelsalonn;

import java.util.*;
public class ejersicio6 {


    public static void main(String[] args) {
        double x, a, b, c, x1;
        Scanner sc= new Scanner(System.in);
        System.out.println("variables aqui:");
        System.out.println("a:");
        a=sc.nextInt();
        System.out.println("b:");
        b=sc.nextInt();
        System.out.println("c:");
        c=sc.nextInt();
       x=(-b+(Math.sqrt(Math.pow(b, 2)-4*a*c)))/2*a;
        System.out.println(x);
        x1=(-b-(Math.sqrt(Math.pow(b, 2)-4*a*c)))/2*a;
        System.out.println(x1);
    }

}
